<template>
  <div class="nav2">
    <div class="container pt-4">
      <div class="row">
        <div class="col-12">
          <div class="pointsRule">
            <ul id="list">
              <li style="z-index:6;background-image: linear-gradient(to right, #005bea ,#00c6fb)" class="green" @click="gotoHome()"><a><span>首页</span><i style="background-color:#00c6fb"></i></a></li>
              <li style="z-index:5;background-image: linear-gradient(to right, #005bea ,#00c6fb)"  @click="gotoNav()"><a><em class="before"></em><span>预算管理</span><i style="background-color:#00c6fb"></i></a></li>
              <li style="z-index:4;background-image: linear-gradient(to right, #005bea ,#00c6fb)"  @click="$router.push('/nav3')"><a><em class="before"></em><span>预算编制</span><i style="background-color:#00c6fb"></i></a></li>
              <li style="z-index:3;background-image: linear-gradient(to right, #005bea ,#00c6fb)"  @click="$router.push('/nav1')"><a><em class="before"></em><span>制定目标(2021)</span><i style="background-color:#00c6fb"></i></a></li>
              <li style="z-index:2;background-image: linear-gradient(to right, #005bea ,#00c6fb)"  @click="$router.push(yearOrMonth==='年'?'/nav4':'/nav7')"><a><em class="before"></em><span>{{yearOrMonth==='月'?'预算执行':'年度'}}</span><i style="background-color:#00c6fb"></i></a></li>
              <li style="z-index:1;background-color:#ffc107" v-show="yearOrMonth==='年'"  @click="$router.push('/nav1')"><a><em class="before"></em><span style="color: #4e555b;">收入</span><i style="background-color:#ffc107"></i></a></li>
              <li style="z-index:0;background-color: #ffc107;" v-show="yearOrMonth==='月'" ><a><em class="before"></em><span style="color: #4e555b;">{{type}}</span><i style="background-color:#ffc107;"></i></a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="content" v-if="orgid == 1">
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='目标制定' ">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/早餐/111'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/午餐/112'}">午餐</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/晚餐/113'}">晚餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/外部客户/114'}">外部客户</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/外卖/115'}">外卖</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '年'">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/早餐/111'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/午餐/112'}">午餐</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/晚餐/113'}">晚餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/外部客户/114'}">外部客户</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/外卖/115'}">外卖</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='执行结果' ">
        <li class="text-center">
          <router-link :to="{ path: '/result/早餐/111'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/午餐/112'}">午餐</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/result/晚餐/113'}">晚餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/外部客户/114'}">外部客户</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/外卖/115'}">外卖</router-link>
        </li>
      </ul>
    </div>
    <div class="content" v-if="orgid == 2">
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='目标制定' ">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/早餐/121'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/午餐/122'}">午餐</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/晚餐/123'}">晚餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/职场生活/124'}">职场生活</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '年'">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/早餐/121'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/午餐/122'}">午餐</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/晚餐/123'}">晚餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/职场生活/124'}">职场生活</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='执行结果' ">
        <li class="text-center">
          <router-link :to="{ path: '/result/早餐/121'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/午餐/122'}">午餐</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/result/晚餐/123'}">晚餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/职场生活/124'}">职场生活</router-link>
        </li>
      </ul>
    </div>
    <div class="content" v-if="orgid == 3">
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='目标制定' ">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/早餐/131'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/食堂/132'}">食堂</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/套餐/133'}">套餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/点餐/134'}">点餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/外卖/135'}">外卖</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/农产品加工/136'}">农产品加工</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '年'">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/早餐/131'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/食堂/132'}">食堂</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/套餐/133'}">套餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/点餐/134'}">点餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/外卖/135'}">外卖</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/农产品加工/136'}">农产品加工</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='执行结果' ">
        <li class="text-center">
          <router-link :to="{ path: '/result/早餐/131'}">早餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/食堂/132'}">食堂</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/result/套餐/133'}">套餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/点餐/134'}">点餐</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/外卖/135'}">外卖</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/农产品加工/136'}">农产品加工</router-link>
        </li>
      </ul>
    </div>
    <div class="content" v-if="orgid == 4">
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='目标制定' ">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/猪/141'}">猪</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/鸡/142'}">鸡</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/鸡蛋/143'}">鸡蛋</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/鸭/144'}">鸭</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/羊/145'}">羊</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '年'">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/猪/141'}">猪</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/鸡/142'}">鸡</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/鸡蛋/143'}">鸡蛋</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/鸭/144'}">鸭</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/羊/145'}">羊</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='执行结果' ">
        <li class="text-center">
          <router-link :to="{ path: '/result/猪/141'}">猪</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/鸡/142'}">鸡</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/result/鸡蛋/143'}">鸡蛋</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/鸭/144'}">鸭</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/羊/145'}">羊</router-link>
        </li>
      </ul>
    </div>
    <div class="content" v-if="orgid == 5">
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='目标制定' ">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/谷物/151'}">谷物</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/豆类、油类和薯类/152'}">豆类、油类和薯类</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/蔬菜/153'}">蔬菜</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '年'">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/谷物/151'}">谷物</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/豆类、油类和薯类/152'}">豆类、油类和薯类</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/蔬菜/153'}">蔬菜</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='执行结果' ">
        <li class="text-center">
          <router-link :to="{ path: '/result/谷物/151'}">谷物</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/豆类、油类和薯类/152'}">豆类、油类和薯类</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/result/蔬菜/153'}">蔬菜</router-link>
        </li>
      </ul>
    </div>
    <div class="content" v-if="orgid == 6">
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='目标制定' ">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/住宿/161'}">住宿</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetMonthDetails/餐饮/162'}">餐饮</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetMonthDetails/晚餐/163'}">加工产品</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '年'">
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/住宿/161'}">住宿</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/BudgetDetails/餐饮/162'}">餐饮</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/BudgetDetails/晚餐/163'}">加工产品</router-link>
        </li>
      </ul>
      <ul class="pl-0" v-show="yearOrMonth === '月' && type=='执行结果' ">
        <li class="text-center">
          <router-link :to="{ path: '/result/住宿/161'}">住宿</router-link>
        </li>
        <li class="text-center">
          <router-link  :to="{ path: '/result/餐饮/162'}">餐饮</router-link>
        </li>
        <li class="text-center">
          <router-link :to="{ path: '/result/晚餐/163'}">加工产品</router-link>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
  export default {
    name: "nav6",
    data () {
      return {
        yearOrMonth: '',
        type:'',
        orgid: window.sessionStorage.getItem('orgid'),
      }
    },
    created() {
      // this.getCostList()
      this.yearOrMonth = this.$route.params.yearOrMonth
      this.type = this.$route.params.type
    },
    methods: {
      gotoHome(){
        this.$router.push("/index");
      },
      //跳转到书吧
      gotoNav: function(){
        this.$router.push("/nav2");
      },
    }
  }
</script>

<style scoped>
  .breadcrumb{
    padding: 10px 5px;
    padding-bottom: 5px;
    background: transparent;
  }
  .breadcrumb-item a,
  .breadcrumb-item{
    font-size: 20px;
  }
  .nav2{
    height: 100%;
    /*background: url("~@/assets/img/bg4.png") no-repeat;*/
    background-size: 100% auto;
    background-position: 0 -100px;
  }
  .content{
    padding-top: 8%;
  }
  .content ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .content ul li{
    list-style: none;
    display: inline;
  }
  .content ul li a{
    /*background: ;*/
    color: #4e555b;
    display: inline-block;
    margin: 40px;
    border-radius: 10px;
    width: 210px;
    height: 150px;
    font-size: 24px;
    font-weight: bold;
    /*box-shadow: 0 0 10px #95999c;*/
    border: 4px solid #7abaff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
  }
  .content ul li a div{
    font-size: 16px;
    font-weight: normal;
    color: #95999c;
    font-weight: bold;

  }
</style>
